//这里定义一些前端的公网接口
//给手机或者邮箱发送验证码
function sendRadomCodeMsg(params){
    return axios.get('https://www.simoniu.com/commons/msg/validatecode',{params});
}

//检查验证码是否正确
async function validateRandomCode(params){
    return axios.get('https://www.simoniu.com/commons/msg/auth',{params});
}

function weixinPay(orderMain){
    return axios.post('https://www.simoniu.com:18991/examdemo/commons/pay/weixin/cashier',orderMain);
}

function checkOrderIsPay(orderId){
    return axios.get('https://www.simoniu.com:18991/examdemo/commons/order/ispay/'+orderId);
}